<%@ page language="java" contentType="text/html; charset=utf-8"    pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<script language="JavaScript" type="text/javascript" src="../datePicker/WdatePicker.js"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #666666;
	font-weight: bold;
}
.STYLE5 {color: #666666}
.STYLE6 {
	color: #135294;
	font-weight: bold;
}
-->
</style>
 
<div align="center">礼品列表</div>
 <table width="98%" border="0" cellpadding="3" cellspacing="2" bgcolor="#FFFFFF" align="center">
 	<tr>
 		<td width="15%" nowrap background="images/bg_table.jpg" bgcolor="#ECEAE6">名称</td>
 		<td width="70%" nowrap background="images/bg_table.jpg" bgcolor="#ECEAE6">操作</td>
 	</tr>
 	<s:iterator value="giftList">
 	<tr bgcolor='#F1F3F5' onmouseover = "this.style.backgroundColor = '#FFDCB0'" onmouseout = "this.style.backgroundColor = ''" style=''>
		<td><s:property value="name"/></td>
 
 		<td>
 		<a href="beforUpdateGift.action?giftId=<s:property value='id'/>">编辑</a>&nbsp;
 		<a href="deleteGift.action?giftId=<s:property value='id'/>" onclick="javascript:if(confirm('确定删除该礼品吗')) return true; else return false;">删除</a>&nbsp;
 		</td>
 	</tr>
 	</s:iterator>
 	<tr><td colspan="2" nowrap  bgcolor='#E4EDF9'>
 	<a href="giftList.action?currentPage=<s:property value='prevPage'/>">上一页</a>
 	<a href="giftList.action?currentPage=<s:property value='nextPage'/>">下一页</a>
 	共<s:property value='totalPage'/>页
 	<a href="beforeAddGift.action">新增</a>	
 	</td><tr/>
 </table> 
  